import { MyAddIssuancePage } from './../my-add-issuance/my-add-issuance';
import { Component, ViewChild } from '@angular/core';
import { Tabs, Platform, ModalController, NavController } from 'ionic-angular';
import { AboutPage } from '../about/about';
import { ContactPage } from '../contact/contact';
import { HomePage } from '../home/home';
import { UserPage } from '../user/user';
import { ButtonService } from '../../providers/button.service';


@Component({
  selector: 'page-tabs',
  templateUrl: 'tabs.html'
})
export class TabsPage {

  @ViewChild('myTabs') tabRef: Tabs;

  HomePage = HomePage;
  AboutPage = AboutPage;
  ContactPage = ContactPage;
  UserPage = UserPage;

  constructor(public backButtonService: ButtonService, public navCtrl: NavController, public platform: Platform, public modalCtrl: ModalController) {

    platform.ready().then(() => {
      this.backButtonService.registerBackButtonAction(this.tabRef);
    });
  }



  addCircle() {
    let myModal = this.modalCtrl.create(MyAddIssuancePage);
    myModal.present();
  }

}
